<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>

</head>
<body>
	<center>
		<br /> <br /> <br />
		<html:form action="dodeleteadmin.do?method=deleteAdmin">
			<table id="bound_delete">
				<tr style="border-bottom: 1px solid">
					<td colspan="3">Bạn có muốn xóa thành viên này không</td>
				</tr>
				<tr>
					<td colspan="3"></td>
				</tr>

				<tr>
					<td style="text-align: right;">Tên đăng nhập :</td>
					<td style="text-align: left;"><bean:write
							name="DeleteAdminForm" property="admin.adminId" /> <html:hidden
							property="admin.adminId" />
					</td>
				</tr>

				<tr>
					<td style="text-align: right;">Họ và tên :</td>
					<td style="text-align: left;"><bean:write
							name="DeleteAdminForm" property="admin.fullName" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;">Cấp độ thành viên :</td>
					<td style="text-align: left;"><logic:equal value="1"
							property="admin.role" name="DeleteAdminForm"> 
						Administrator
					</logic:equal> <logic:equal value="0" property="admin.role"
							name="DeleteAdminForm"> 
						Contributer
					</logic:equal> <%-- 					
						<bean:write name="DeleteAdminForm" property="role"/> 
					--%></td>
				</tr>
				<tr>
					<td style="text-align: right;">Địa chỉ Email :</td>
					<td style="text-align: left;"><bean:write
							name="DeleteAdminForm" property="admin.email" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;">Điện thoại :</td>
					<td style="text-align: left;"><bean:write
							name="DeleteAdminForm" property="admin.phone" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;">Miêu tả ngắn :</td>
					<td style="text-align: left;"><bean:write
							name="DeleteAdminForm" property="admin.description" />
					</td>
				</tr>
				<tr>
					<%
						if (session.getAttribute("role") != null
									&& session.getAttribute("role").toString()
											.equalsIgnoreCase("Admin")) {
					%>
					<td style="text-align: right;"><html:submit value="Yes"></html:submit>
					</td>
					<td style="text-align: left;"><html:reset value="No"></html:reset>
					</td>
					<%
						} else {
					%>
					<td style="text-align: right;"><html:submit value="Yes"
							disabled="true"></html:submit>
					</td>
					<td style="text-align: left;"><html:reset value="No"></html:reset>
					</td>
				</tr>

				<tr>
					<td colspan="3"><font color="red">You do not have
							permission to delete this record</font></td>
				</tr>
				<%
					}
				%>
			</table>

		</html:form>
	</center>

</body>
</html>